package com.yzt.zhuju.event.voice;

import com.yzt.zhuju.event.BaseBusEvent;

/**
 * author : bob
 * date   : 2022/11/29
 * desc   :
 */
public class VoiceEvent extends BaseBusEvent {

    public static final int TYPE_START = 0;

    public static final int TYPE_STOP = 1;

    public static final int TYPE_TIME = 2;

    private int type;

    private String playId;

    private int totalTime;

    private int remainTime;

    public VoiceEvent(int type, String playId, int totalTime) {
        this.type = type;
        this.playId = playId;
        this.totalTime = totalTime;
    }

    public VoiceEvent(int type, String playId, int totalTime, int remainTime) {
        this.type = type;
        this.playId = playId;
        this.totalTime = totalTime;
        this.remainTime = remainTime;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPlayId() {
        return playId;
    }

    public void setPlayId(String playId) {
        this.playId = playId;
    }

    public int getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(int totalTime) {
        this.totalTime = totalTime;
    }

    public int getRemainTime() {
        return remainTime;
    }

    public void setRemainTime(int remainTime) {
        this.remainTime = remainTime;
    }
}